﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Write("Page_Load event fired.");
    }
    protected void Page_PreInit(object sender, EventArgs e)
    {
        Response.Write("Page_PreInit event fired.");
    }
    protected void Page_Init(object sender, EventArgs e)
    {
        Response.Write("Page_Init event fired.");
    }
    protected void Page_PreLoad(object sender, EventArgs e)
    {
        Response.Write("Page_PreLoad event fired.");
    }
    protected void Page_InitComplete(object sender, EventArgs e)
    {
        Response.Write("Page_InitComplete event fired.");
    }
    protected void Page_LoadComplete(object sender, EventArgs e)
    {
        Response.Write("Page_LoadComplete event fired.");
    }
    protected void Page_PreRender(object sender, EventArgs e)
    {
        Response.Write("Page_PreRender event fired. </br>");
    }
    protected void Page_PreRenderComplete(object sender, EventArgs e)
    {
        Response.Write("Page_PreRenderComplete event fired.");
    }
    protected void Page_SaveStateComplete(object sender, EventArgs e)
    {
        Response.Write("Page_SaveStateComplete event fired.");
    }
    //protected void Page_Unload(object sender, EventArgs e)
    //{
    //    Response.Write("Page_Unload event fired.");
    //}

    protected void ButtonSave_Click(object sender, EventArgs e)
    {
        File.Create(@"C:\Program Files\mil.txt");
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        TextBox2.Text = TextBox1.Text;
    }
}
